import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  define: {
    global: 'globalThis',  // 把 global 替换为 globalThis
  },
  server: {
    host: '0.0.0.0',  // 设置监听地址为0.0.0.0
    port: 3000  // 设置端口为 3000
  },
})
